package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡线记录对象 patrol_route_record
 *
 * @author ruoyi
 * @date 2025-10-17
 */
public class PatrolRouteRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 功能主键 */
    private String id;

    /** 公司编号 */
    @Excel(name = "公司编号")
    private Long devid;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String devname;

    /** 检查员编号 */
    @Excel(name = "检查员编号")
    private Long userId;

    /** 检查员 */
    @Excel(name = "检查员")
    private String userName;

    /** 基准线路编号 */
    @Excel(name = "基准线路编号")
    private String routeId;

    /** 基准线路名称 */
    @Excel(name = "基准线路名称")
    private String routeName;

    /** 路线标识 */
    @Excel(name = "路线标识")
    private String sign;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String beginTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endTime;

    /** 轨迹 */
    @Excel(name = "轨迹")
    private String trail;

    /** 最新时间 */
    @Excel(name = "最新时间")
    private String lastTime;

    /** 种类: 0系统，1人工 */
    @Excel(name = "种类: 0系统，1人工")
    private String type;

    /** 状态（0 进行中,1 已结束） */
    @Excel(name = "状态", readConverterExp = "0=,进=行中,1,已=结束")
    private Long state;

    /** 版本（乐观锁） */
    @Excel(name = "版本", readConverterExp = "乐=观锁")
    private Long version;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setDevid(Long devid)
    {
        this.devid = devid;
    }

    public Long getDevid()
    {
        return devid;
    }
    public void setDevname(String devname)
    {
        this.devname = devname;
    }

    public String getDevname()
    {
        return devname;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setRouteId(String routeId)
    {
        this.routeId = routeId;
    }

    public String getRouteId()
    {
        return routeId;
    }
    public void setRouteName(String routeName)
    {
        this.routeName = routeName;
    }

    public String getRouteName()
    {
        return routeName;
    }
    public void setSign(String sign)
    {
        this.sign = sign;
    }

    public String getSign()
    {
        return sign;
    }
    public void setBeginTime(String beginTime)
    {
        this.beginTime = beginTime;
    }

    public String getBeginTime()
    {
        return beginTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setTrail(String trail)
    {
        this.trail = trail;
    }

    public String getTrail()
    {
        return trail;
    }
    public void setLastTime(String lastTime)
    {
        this.lastTime = lastTime;
    }

    public String getLastTime()
    {
        return lastTime;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState()
    {
        return state;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("devid", getDevid())
            .append("devname", getDevname())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("routeId", getRouteId())
            .append("routeName", getRouteName())
            .append("sign", getSign())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("trail", getTrail())
            .append("lastTime", getLastTime())
            .append("type", getType())
            .append("state", getState())
            .append("version", getVersion())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
